package com.hdax.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.hdax.common.utils.PageUtils;
import com.hdax.gulimall.order.entity.OrderEntity;
import com.hdax.gulimall.order.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author xiaohou
 * @email 2687781461@qq.com
 * @date 2023-04-08 23:36:29
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;


    SubmitResponseVo submitOrder(OrderSubmitVo orderSubmitVo) throws JsonProcessingException;

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo payAsyncVo);
}

